package main

import "encoding/json"

type RankDataReq struct {
	ZoneId   uint32   `json:"server_id"`
	RankType string   `json:"rank_type"`
	RoleId   []uint32 `json:"role_id"`
	RankId   []uint32 `json:"rank_id"`
}
type HandleRankControlReq struct {
	Data []RankDataReq `json:"data"`
}

func DoJson() {
	tmp := &HandleRankControlReq{
		Data: []RankDataReq{
			{
				ZoneId:   1,
				RankType: "daily",
				RoleId:   []uint32{1001, 1002, 1003},
				RankId:   []uint32{1, 2, 3},
			},
			{
				ZoneId:   2,
				RankType: "weekly",
				RoleId:   []uint32{2001, 2002, 2003},
				RankId:   []uint32{4, 5, 6},
			},
		},
	}
	dt, err := json.Marshal(tmp)
	if err != nil {
	}
	_ = dt
}
